<div class="main-nav-wapper">
    <div id="masthead-positioner">
        <div id="yt-masthead-container" class="clearfix yt-base-gutter">
            <a ui-sref="MainNav" class="logo" flex="none"></a>
        </div>
        <div id="sub-title" layout="row">
            <!--部门-->
            <div layout="row" ng-if="currentToolbar('MainNav.Department')" layout-align="center center">
                <md-button class="" ng-click="addDepartment()">
                    <i class="fa fa-plus md-primary"></i>
                    添加部门
                </md-button>
                <md-divider></md-divider>
                <div layout="row" layout-align="center center" class="toolbar-item">
                    <label><i class="fa fa-search"></i>按关键字搜索</label>
                    <input class="input-toolbar" name="" ng-model="department.keyword"
                           ng-change="department.keywordSearch()">
                </div>

            </div>

            <div layout="row" ng-if="currentToolbar('MainNav.AddDepartment')">
                <md-button class="" ng-click="backDepartment()">
                    <i  class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>
            <div layout="row" ng-if="currentToolbar('MainNav.EditDepartment')">
                <md-button class="" ng-click="backDepartment()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>

            <!--用户-->
            <div layout="row" ng-if="currentToolbar('MainNav.SystemUser')" layout-align="center center">
                <md-button class="" ng-click="addUser()">
                    <i class="fa fa-plus"></i>
                    添加用户
                </md-button>


                <md-divider></md-divider>
                <div layout="row" layout-align="center center" class="toolbar-item">
                    <label><i class="fa fa-search"></i>按关键字搜索</label>
                    <input class="input-toolbar" name="" ng-model="user.keyword"
                           ng-change="user.keywordSearch()">
                </div>

            </div>

            <div layout="row" ng-if="currentToolbar('MainNav.AddSystemUser')">
                <md-button class="" ng-click="backUser()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>
            <div layout="row" ng-if="currentToolbar('MainNav.EditSystemUser')">
                <md-button class="" ng-click="backUser()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>


            <!--员工-->
            <div layout="row" ng-if="currentToolbar('MainNav.Employee')" layout-align="center center">
                <md-button class="" ng-click="addEmployee()">
                    <i class="fa fa-plus"></i>
                    添加员工
                </md-button>
                <md-button class="" ng-click="caclTax()">
                    <i class="fa fa-calculator"></i>
                    计算所选用户税率
                </md-button>

                <md-divider></md-divider>
                <div layout="row" layout-align="center center" class="toolbar-item">
                    <label><i class="fa fa-search"></i>按关键字搜索</label>
                    <input class="input-toolbar" name="" ng-model="Employee.keyword"
                           ng-change="Employee.keywordSearch()">
                </div>
            </div>

            <div layout="row" ng-if="currentToolbar('MainNav.AddEmployee')">
                <md-button class="" ng-click="backEmployee()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>
            <div layout="row" ng-if="currentToolbar('MainNav.EditEmployee')">
                <md-button class="" ng-click="backEmployee()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>

            <div layout="row" ng-if="currentToolbar('MainNav.DetailEmployee')">
                <md-button class="" ng-click="RewardEmployee($event)">
                    <i class="fa fa-calculator"></i>
                    计算税率
                </md-button>
                <md-button class="" ng-click="backEmployee()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>
            <div layout="row" ng-if="currentToolbar('MainNav.EmployeeReward')">
                <md-button class="" ng-click="DownLoadRewardEmployee()">
                    <i class="fa fa-calculator"></i>
                    下载报表
                </md-button>
                <md-button class="" ng-click="backEmployee()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>

            <!--工资税-->
            <div layout="row" ng-if="currentToolbar('MainNav.TaxSetting')" layout-align="center center">
                <md-button class="" ng-click="addTaxSetting()">
                    <i class="fa fa-plus"></i>
                    添加税率方案
                </md-button>
            </div>

            <div layout="row" ng-if="currentToolbar('MainNav.AddTaxSetting')">
                <md-button class="" ng-click="backTaxSetting()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>
            <div layout="row" ng-if="currentToolbar('MainNav.EditTaxSetting')">
                <md-button class="" ng-click="backTaxSetting()">
                    <i class="fa fa-reply"></i>
                    返回
                </md-button>
            </div>

        </div>
    </div>
    <div id="page-container">
        <div id="page">
            <div id="appbar-guide-menu" elheightresize class="float-nav-side">
                <div id="guide-container" class="">
                    <div class="guide-module-content yt-scrollbar">
                        <div layout="column">
                            <div>{{bodyHeigth}}</div>
                            <md-button layout="row" ui-sref=".Department"><i class="fa fa-group"></i>部门管理</md-button>
                            <md-button layout="row" ui-sref=".Employee"><i class="fa fa-male"></i>员工信息</md-button>
                            <md-button layout="row" ui-sref=".TaxSetting"><i class="fa fa-calculator"></i>税率设置
                            </md-button>
                            <md-button layout="row" ui-sref=".Tools"><i class="fa fa-wrench"></i>实用工具</md-button>
                            <md-button layout="row" ui-sref=".SystemUser"><i class="fa fa-users"></i>系统用户</md-button>
                            <md-button layout="row" ui-sref=".Setting"><i class="fa fa-cogs"></i>系统设置</md-button>
                        </div>
                    </div>
                </div>
            </div>
            <div id="content" class="content-alignment">
                <div class="main-nav-content">
                    <div layout="column" data-ui-view="" class="view-animate">
                        <div class="content" layout-padding>
                            <h1>
                                资环工研院薪水奖金计算系统
                            </h1>
                            <div>
                                欢迎使用！
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <div id="footer-wapper" layout="row">
                <div layout="column" flex="">
                    <h3 class="row">技术支持：产业金融-平台开发</h3>
                    <span class="row"><i class="fa fa-th-list"></i>业务功能维护和程序扩展：<a href="mailto:lifan@happychou.net">lifan@happychou.net</a> 李凡</span>
                    <span class="row" layout="row" layout-align="start start">
                        <div flex="initial"><i class="fa fa-cog"></i>技术联系：</div>
                        <div flex="" layout="column">
                            <span><a href="mailto:zhangliang@happychou.net">zhangliang@happychou.net</a> 张亮</span>
                            <span><a href="mailto:zhouht@happychou.net">zhouht@happychou.net</a>周海天</span>
                        </div>
                    </span>

                    <span class="row"><i class="fa fa-bug"></i>BUG紧急修复：18771927650 张亮 | 18207135869 周海天</span>
                </div>
                <div flex>

                </div>
                <div flex></div>
            </div>
        </div>
    </div>
</div>